@extends('public.home_base')
@section('title', '公告')

@section('content')
    @parent
    <div class="center_container">
        <div class="navBreadcrumb">
            <span class="fl">当前位置：</span>
            <ul>
                <li><a href="list.html">公告</a></li>
                <li><a href="">{{@$single->title}}</a></li>
            </ul>
        </div>
        <div class="left_right_structure details_container">
            <div class="left">
                <div class="panel">
                    <div class="panel_header">
                        <span class="title">{{@$single->title}}</span>
                    </div>
                    <div class="panel_body">
                        <div class="detail_body">
                            <div>{{@$single->content}}</div>
                            <div class="bottom">
                                <p>{{@$single->author}}</p>
                                <p class="text_light_gray">{{@$single->created_at}}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="right">
                <div class="panel">
                    <div class="panel_header">
                        <span class="title">最新公告</span>
                    </div>
                    <ul class="commend_list">
                        @forelse ($notice as $item)
                            <li>
                                <a href="{{url('notice?id=').$item->id}}">
                                    <span>{{$item->title}}</span>
                                    <em>{{date('Y-m-d',strtotime($item->created_at))}}</em>
                                </a>
                            </li>
                        @empty
                            <p>暂无</p>
                        @endforelse
                    </ul>
                </div>
                <div class="mt20">
                    <img src="static/picture/banner.jpg" alt="" width="340" height="150">
                </div>
            </div>
        </div>
    </div>

@endsection
@section('script')

@endsection